package com.suvel.study.dao;

import com.suvel.study.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserDao extends JpaRepository<User,Long> {

    List<User> findByEmail(String email);

    List<User> findByEmailAndPassword(String email, String password);
}
